package com.test.quartztest.task;

import com.test.quartztest.service.TimeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by dong on 16-6-5.
 * Task是普通的java类
 */
public class DataConversionTask {

    @Autowired
    private TimeService timeService;

    /** 日志对象 */
    private static final Logger LOG = LoggerFactory.getLogger(DataConversionTask.class);
    public void timeRun() {
        if (LOG.isInfoEnabled()) {
            LOG.info("数据转换任务线程开始执行");
            timeService.timeWork();
        }
    }
}
